#include <iostream>

using namespace std;

template<class T1, class T2>
class AA
{
public:
    T1 m_a;
    T2 m_b;

    AA(){}
    AA(T1 a, T2 b) : m_a(a), m_b(b){}
    T1 geta()
    {
        T1 a = 2;
        return m_a + a;
    }
    T2 getb()
    {
        T2 b = 1;
        return m_b + b;
    }
};

int main(void)
{
    AA<int, double> a;
    a.m_a = 20;
    a.m_b = 30;
    cout << "a.geta()=" << a.geta() << endl;
    cout << "a.getb()=" << a.getb() << endl;

    return 0;
}